<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>示例</title>
<link href="../css/style.css" rel="stylesheet" type="text/css" />
<link href="../css/page.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="../js/msgbox/msgbox.css" />
<style>
h2 {color: #AAD83E;}
p{ margin:5px; padding:5px; ;background-color:#313131; color:#FFF;}
</style>
<script src="../js/jquery-1.6.js" type="text/javascript">
    </script>
<script src="../js/jquery.myPagination5.0.js" type="text/javascript">
    </script>
<script language="javascript" type="text/javascript" src="../js/msgbox/msgbox.js"></script>
</head>
<body>
 <script>

            $(function() {
					   
				$("#demo1").myPagination({});
				
				$("#demo2").myPagination({cssStyle:'scott'});
				
				$("#demo3").myPagination({cssStyle:"black",currPage:3,pageCount:100});
				
				$("#demo4").myPagination({cssStyle:'starcraft2',panel:{first: '<<',last: '>>',
next: '>',prev: '<',links:"javascript:void(0);",last_on:false}});
				
				$("#demo5").myPagination({cssStyle:'grayr',panel:{tipInfo_on:true,tipInfo_css:{width:"22px",height:'12px'}}});
				
				$("#demo6").myPagination({cssStyle:'jogger',ajax:{on:false,onClick:function(page){
ZENG.msgbox.show(" 正在加载"+page+"页，请稍后...", 6, 1000);}}});
				
            });
			
</script>

<h2>Demo1(一个基础的配置)</h2>
<p>
$("#demo1").myPagination({});
</p>
<div id="demo1">
</div>
<h2>Demo2(更改样式)</h2>
<p>
$("#demo2").myPagination({cssStyle:'scott'});
</p>
<div id="demo2">
</div>
<h2> Demo3(初始化页面及更改页码大小) </h2>
<p>
$("#demo3").myPagination({cssStyle:"black",currPage:3,pageCount:100});
</p>
<div id="demo3">
</div>
<h2> Demo4(配置页码栏,最后一页不显示) </h2>
<p>
$("#demo4").myPagination({cssStyle:'starcraft2',panel:{first: '<<',last: '>>',
next: '>',prev: '<',links:"javascript:void(0);",last_on:false}});
</p>
<div id="demo4">
</div>
<h2>  Demo5(配置文本框样式)</h2>
<p>
$("#demo5").myPagination({cssStyle:'grayr',panel:{tipInfo_on:true,tipInfo_css:{width:"22px",height:'12px'}}});
</p>
<div id="demo5">
</div>
<h2>  Demo6(配置onClick提示信息)</h2>
<p>
$("#demo6").myPagination({cssStyle:'jogger',ajax:{on:false,onClick:function(page){
ZENG.msgbox.show(" 正在加载"+page+"页，请稍后...", 6, 1000);}}});
</p>
<div id="demo6">
</div>
</body>
</html>